package top.tocchen.bookshop.dao;

import org.apache.ibatis.annotations.Mapper;
import top.tocchen.bookshop.entity.OrderEntity;
import top.tocchen.bookshop.entity.OrderDoEntity;
import org.springframework.stereotype.Component;

import java.util.List;
@Mapper
public interface OrderDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderEntity record);

    int insertSelective(OrderEntity record);

    OrderEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderEntity record);

    int updateByPrimaryKey(OrderEntity record);

    List<OrderDoEntity> findAll(int userid);

}